package com.jiajia.testclouduser;

import com.jiajia.testclouduser.util.SessionUtil;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession;

@SpringBootApplication
//@EnableRedisHttpSession(maxInactiveIntervalInSeconds=60)
@EnableRedisHttpSession
public class TestCloudUserApplication {

    public static void main(String[] args) {
        SpringApplication.run(TestCloudUserApplication.class, args);
    }

    @Bean
    public SessionUtil sessionUtil() {
        return new SessionUtil();
    }
}
